import instance from "@/http";

// 学生信息分页处理
export const studentPage = (formDate)=>instance.post("/student/page",formDate)


// 修改和添加学生信息
export const addOrUpdateStudent = (form)=>instance.post("/student/addOrUpdate",form)


// 删除学生信息
export const deleteStudent =(id)=>instance.delete('/student/delete/'+id)


// 批量导入  文件上传操作 要是用post请求
export const  importStudent = (formData)=>instance.post("/student/import",formData)

// 批量导出
export const  exportStudent = (formData)=>instance.get("/student/export",{params:formData,responseType:'arraybuffer'})

